package top.tagao.m01_structuralPatterns.s_04_bridge;

/**
 * 抽象化（Abstraction）角色
 * @author fu-xiao-liu
 * @Date 2022/7/31 18:16
 */
public abstract class Phone {
    //组合品牌
    private Brand brand;
    //构造器
    public Phone(Brand brand) {
        this.brand = brand;
    }
    protected void open() {
        this.brand.open();
    }
    protected void close() {
        brand.close();
    }
    protected void call() {
        brand.call();
    }

}
